<?php

namespace app\api\behavior;

use app\admin\model\User;

class ApiLog
{
    public function run(&$response)
    {
        //dump($response);die;
        /*dump($this->auth->id);die;
        $change_house_level = User::where(['status'=>1,'user_id'=>$row->user_id])
            ->where('FIND_IN_SET(:mode,mode)',['mode' => 3])
            ->order('house_level desc')
            ->field('house_level')->find();

        $house_level = User::where(['status'=>1,'user_id'=>$row->user_id])
            ->order('house_level desc')
            ->field('house_level')->find();

        $update_data = [
            'owner_level'=>$house_level['house_level']
        ];
        if ($change_house_level){
            $update_data['owner_house_level'] = $change_house_level['house_level'];
        }
        User::where(['id'=>$row->user_id])->update($update_data);*/
    }
}
